import 'dart:ui';

class AppColor {
  static Color hex(String hexColor, {double opacity = 1.0}) {
    hexColor = hexColor.toUpperCase().replaceAll("#", "");
    if (hexColor.length == 6) {
      hexColor = "FF$hexColor";
    } else {
      hexColor = "FFFFFFFF";
    }
    return Color(int.parse(hexColor, radix: 16)).withOpacity(opacity);
  }

  static const Color primary = Color(0xFF19DBF2);
  static const Color color24A4B3 = Color(0xFF24A4B3);
  static const Color color262829 = Color(0xFF262829);
  static const Color color585A5C = Color(0xFF585A5C);
  static const Color color53BCF4 = Color(0xFF53BCF4);
  static const Color colorA0A2A3 = Color(0xFFA0A2A3);
  static const Color color90FDFF = Color(0xFF90FDFF);
  static const Color colorF8F8F8 = Color(0xFFF8F8F8);
  static const Color colorEBF0F5 = Color(0xFFEBF0F5);
  static const Color color17181A = Color(0xFF17181A);
  static const Color colorFFDD00 = Color(0xFFFFDD00);
  static const Color color0095FF = Color(0xFF0095FF);
  static const Color colorFF4D00 = Color(0xFFFF4D00);
  static const Color color42B969 = Color(0xFF42B969);
  static const Color colorFFF200 = Color(0xFFFFF200);
  static const Color color222324 = Color(0xFF222324);
  static const Color colorF5F7FA = Color(0xFFF5F7FA);
  static const Color colorF5F7F5 = Color(0xFFF5F7F5);
  static const Color colorCACACC = Color(0xFFCACACC);
  static const Color color5353F4 = Color(0xFF5353F4);
  static const Color color9CA5FF = Color(0xFF9CA5FF);
  static const Color color646EFE = Color(0xFF646EFE);
  static const Color colorFF8C00 = Color(0xFFFF8C00);
  static const Color color8592AD = Color(0xFF8592AD);

  static const Color colorE9E9FF = Color(0xFFE9E9FF);
  static const Color colorD7FFF3 = Color(0xFFD7FFF3);
  static const Color colorF0F3F7 = Color(0xFFF0F3F7);
  static const Color colorCCCCCC = Color(0xFFCCCCCC);
  static const Color colorE97563 = Color(0xFFE97563);

  static const Color colorFA92FF = Color(0xFFFA92FF);
  static const Color color92CAFF = Color(0xFF92CAFF);
  static const Color color1B1B1B = Color(0xFF1B1B1B);
  static const Color color2C2C2C = Color(0xFF2C2C2C);
  static const Color color181818 = Color(0xFF181818);
  static const Color color17140D = Color(0xFF17140D);
  static const Color colorF8F9FD = Color(0xFFF8F9FD);
  static const Color colorE64A4A = Color(0xFFE64A4A);
  static const Color color24252D = Color(0xFF24252D);
  static const Color color191A1D = Color(0xFF191A1D);
  static const Color color282828 = Color(0xFF282828);
  static const Color color202020 = Color(0xFF202020);
  static const Color color999999 = Color(0xFF999999);
  static const Color colorWhite60 = Color(0x99FFFFFF);
  static const Color colorBDBDBD = Color(0xFFBDBDBD);
  static const Color colorFEFFE9 = Color(0xFFFEFFE9);
  static const Color colorFFEFD7 = Color(0xFFFFEFD7);
  static const Color colorA9A9FA = Color(0xFFA9A9FA);
  static const Color color83848F = Color(0xFF83848F);
  static const Color colorD5D5FF = Color(0xFFD5D5FF);

  static const Color color7F909F = Color(0xFF7F909F);

  static const Color colorD4E1FF = Color(0xFFD4E1FF);
  static const Color colorF453BF = Color(0xFFF453BF);

  static const Color colorFDDFA9 = Color(0xFFFDDFA9);
  static const Color color201A36 = Color(0xFF201A36);
  static const Color color151025 = Color(0xFF151025);
  static const Color colorFFD1B2 = Color(0xFFFFD1B2);
  static const Color colorD575B1 = Color(0xFFD575B1);
  static const Color color5097E8 = Color(0xFF5097E8);

  static const Color colorFFCAFF = Color(0xFFFFCAFF);
  static const Color color2D2D33 = Color(0xFF2D2D33);
  static const Color colorC0C0CC = Color(0xFFC0C0CC);
  static const Color color8D8D99 = Color(0xFF8D8D99);
  static const Color colorD61B9B = Color(0xFFD61B9B);
  static const Color colorDBF1FF = Color(0xFFDBF1FF);
  static const Color color04B822 = Color(0xFF04B822);

  static const Color colorE4EBF0 = Color(0xFFE4EBF0);
  static const Color color0C0A09 = Color(0xFF0C0A09);

  static const Color color7F909E = Color(0xFF7F909E);
  static const Color color48484A = Color(0xFF48484A);
  static const Color color0D0D12 = Color(0xFF0D0D12);
  static const Color color8C92A3 = Color(0xFF8C92A3);
  static const Color colorDFE5F1 = Color(0xFFDFE5F1);
  static const Color colorFAFAF9 = Color(0xFFFAFAF9);
  // colorDFE5F1
  // 搜索页面相关颜色
  static const Color colorF5F5F5 = Color(0xFFF5F5F5); // 搜索框背景色
  static const Color color333333 = Color(0xFF333333); // 主标题文本色
  static const Color color666666 = Color(0xFF666666); // 次要文本色

  // 错误状态颜色
  static const Color errorColor = Color(0xFFEB5756);

  // 首页设计相关颜色
  static const Color colorF6F8FA = Color(0xFFF6F8FA); // 页面背景色
  static const Color color9DD6F3 = Color(0xFF9DD6F3); // 蓝色模糊背景
  static const Color color63FFFA = Color(0xFF63FFFA); // 渐变起始色
  static const Color colorF59EFF = Color(0xFFF59EFF); // 渐变结束色
  static const Color colorDD5E9B = Color(0xFFDD5E9B); // 通知徽章背景色

  static const Color colorE5FFFB = Color(0xFFE5FFFB); // 通知徽章背景色

  static const Color color51C2FC = Color(0xFF51C2FC); // 通知徽章背景色
  static const Color color60F0CD = Color(0xFF60F0CD); // 通知徽章背景色
}
